<?php

class Cms_ArticleController extends My_Controller_Action {

    public function indexAction() {
        // action body
        die('article home');
    }

    public function viewAction(){
    	
        $article_id = $this->_request->getParam('id');
       
        $this->view->rightModules('right');
        $this->view->visitorCountModule('right');

        $model = $this->loadModel('cms', 'Article');
        $this->view->id = $article_id;        
        $this->view->article = $model->fetchRow($model->select()->where('article_id=?', $article_id));        
    }
}

